﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace RoleEditer
{
    public enum OffsetMode
    {
        Self,All
    }
    public class EditerConfig
    {
        public static OffsetMode OffsetMode = RoleEditer.OffsetMode.All;
        
        public static void Initialization(MainPage mainpage)
        {
            (mainpage.offsetModes.Children[(int)OffsetMode] as RadioButton).IsChecked = true;
        }
        public static bool IsImageOffsetPointEqually(Image img1, Image img2)
        {
            if (!(img1.Tag is Point) || !(img2.Tag is Point))
            {
                return false;
            }
            Point pt1 = (Point)img1.Tag;
            Point pt2 = (Point)img2.Tag;
            if (pt1.X == pt2.X && pt1.Y == pt2.Y)
                return true;
            else
                return false;
        }
    }
    
}
